export const handleSpecialValue = (values: any, fields: string[], timeField?: string) => {
  const _values = {}
  fields.forEach((item) => {
    if (values[item]?.length == 1 && values[item]?.[0] == '全部') {
      _values[item] = []
    }
  })
  if (timeField && values[timeField]) {
    _values['tbg'] = values[timeField][0],
      _values['ted'] = values[timeField][1],
      _values[timeField] = undefined
  }
  return { ...values, ..._values }
} 